<?php

namespace app\modules\controllers;
use yii;
use yii\web\Controller;

/**
 * Default controller for the `admin` module
 */
class DefaultController extends Controller
{
	public $layout='layout1';
    /**
     * Renders the index view for the module
     * @return string
     */
    public function actionIndex()
    {
    	  
       $session=YII::$app->session;
       if(empty($session['admin']['isLogin'])){
         $this->redirect(['public/login']);
       }
   
        return $this->render('index');
    }
}
